package com.springcloud.controller;

import com.springcloud.service.HomeFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderFeignController {

    @Resource
    private HomeFeignService homeFeignService;

    @GetMapping(value = "/consumer/home/get/{id}")
    public String getById(@PathVariable("id") String id){
        return homeFeignService.getById(id);
    }

}
